<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt"  uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>时尚屋会员登录</title>
<style type="text/css">
body{
	background:url(img_all/287160.jpg); 
	margin:0px;
	padding:0px;
	color: #222;
	font-family:"微软雅黑" ;
}

a{
	color:#333;
	text-decoration:none;
}
input{
	border:1px solid #ccc;
}
div{
	background:hsla(45,0%,100%,.7);
	width:350px;
	height:250px;
	float:right;
	margin:180px 200px 0 0;
	border:1px solid #ccc;
}

ul li{
	line-height:50px;
	list-style:none;
}

ul li:nth-child(4) a {
	margin-left:5px;
}
</style>
</head>

<body>
<div style="position: relative;">
<form action="LoginServlet" >
	<ul>
    	<li><h2>时尚屋会员登录</h2></li>	
		<li>账号：<input type="text" name="name"  autofocus="autofocus"/></li>
		<li>密码：<input type="password" name="loginPwd" /></li>
		<p style="margin-top:0px; color: #c33; position: absolute; margin-top:-10px; margin-left:50px;font-weight:bold; font-size: 12px;">${prompt }</p>
		<li>
        	<input type="submit" value="登录" />
        	<a href="register.jsp"><input type="button" value="注册"  size=10/></a>
        	<a href="UserServlet"><input type="button" value="返回首页"  /></a>
        	<a href="#" style="text-decoration:underline; font-size:10px;">忘记了密码？</a>
        </li>
		
	</ul>
</form>

</div>
<%request.getSession().removeAttribute("prompt"); %> <!-- 提示用户名密码错误后清空session -->
</body>
</html>


